package cn.bopomo.dealer.base.vo;

import java.util.Date;

import org.apache.struts.action.ActionForm;

public class OperatorForm extends ActionForm {

	private String loginName;

    /** persistent field */
    private String password;

    /** persistent field */
    private String authorize;
    
    /** persistent field */
    private String introduction;
    
    /** persistent field */
    private boolean hasChild;
    
    private Integer parentId;
    
    /** nullable persistent field */
    private Date addDate;
    
    private cn.bopomo.dealer.base.vo.OperatorDetail operatorDetail;

    public OperatorForm(){
    	this.addDate = new Date();
    }
    
	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public boolean getHasChild() {
		return hasChild;
	}

	public void setHasChild(boolean hasChild) {
		this.hasChild = hasChild;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getAuthorize() {
		return authorize;
	}

	public void setAuthorize(String authorize) {
		this.authorize = authorize;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public cn.bopomo.dealer.base.vo.OperatorDetail getOperatorDetail() {
		OperatorDetail op = new OperatorDetail();
		op.setId(this.parentId);
		this.operatorDetail = op;
		return operatorDetail;
	}

	
}
